import request from '../utils/request'
// https://api.it120.cc/shuihan
// 获取轮播图接口
// const fetchBanner = (params = {}) => {
//   return request.get('/banner/list', { params })
// }
const fetchBanner = (params = {}) => request.get('/banner/list', { params })
// 获取分类列表
const fetchCate = (params = {}) => request.get('/shop/goods/category/all', { params })
// 请求首页商品列表
const fetchItems = (params = {}) => request.post('/shop/goods/list', params)
// 请求单条商品数据
const fetchItem = (params = {}) => request.get('/shop/goods/detail', { params })
// 导出api
export {
  fetchBanner,
  fetchCate,
  fetchItems,
  fetchItem
}
